#include <stdio.h>
#include <stdlib.h>
#include <string.h>

static void split_array(char *p_return_array)
{
    char string_size;
    char p_return[20];
    static int actual_size = 0;

    string_size = p_return_array[actual_size];
    p_return_array = p_return_array + actual_size;
    actual_size = string_size - '0';
    printf("later:%c\n", p_return_array[0]);
    p_return_array = p_return_array + 1;
    printf("now:%c\n", p_return_array[0]);

    printf("actual_size:%d\n", actual_size);

    strncpy(p_return, p_return_array, actual_size);
    printf("1\n");
    p_return[actual_size] = '\0';

    printf("%s\n", p_return);

    string_size = p_return_array[actual_size];
    p_return_array = p_return_array + actual_size;
    actual_size = string_size - '0';
    p_return_array = p_return_array + 1;
    strncpy(p_return, p_return_array, actual_size);
    p_return[actual_size] = '\0';
printf("%s\n", p_return);
    string_size = p_return_array[actual_size];
    p_return_array = p_return_array + actual_size;
    actual_size = string_size - '0';
    p_return_array = p_return_array + 1;
    strncpy(p_return, p_return_array, actual_size);
    p_return[actual_size] = '\0';
printf("%s\n", p_return);
    string_size = p_return_array[actual_size];
    p_return_array = p_return_array + actual_size;
    actual_size = string_size - '0';
    p_return_array = p_return_array + 1;
    strncpy(p_return, p_return_array, actual_size);
    p_return[actual_size] = '\0';
printf("%s\n", p_return);
    string_size = p_return_array[actual_size];
    p_return_array = p_return_array + actual_size;
    actual_size = string_size - '0';
    p_return_array = p_return_array + 1;
    strncpy(p_return, p_return_array, actual_size);
    p_return[actual_size] = '\0';

    printf("%s\n", p_return);
}

int main(void)
{
    char *input_return = "4mas73123412345123456qweewq";

    split_array(input_return);

    /* get_return = split_array(input_return);
    strncpy(name, get_return, sizeof(get_return));

    printf("%s\n", name); */

    /* string_size = p_return_array[actual_size];
    p_return_array = p_return_array + actual_size;
    actual_size = string_size - '0';
    p_return_array = p_return_array + 1;
    strncpy(user_id, p_return_array, actual_size);
    user_id[actual_size] = '\0'; */

    return 0;
}